package com.mrx.wallabagserver.service;

import com.mrx.wallabagserver.model.oauth.OAuthRequest;
import com.mrx.wallabagserver.model.oauth.OAuthResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.UUID;

/**
 * @author Mr.X
 * @since 2024-03-15 10:16
 **/
@Service
public class OAuthService {

    private static final Logger logger = LoggerFactory.getLogger(OAuthService.class);

    public OAuthResponse generateToken(OAuthRequest request) {
        logger.info("登录请求: {}", request);
        return OAuthResponse.of(UUID.randomUUID().toString(), UUID.randomUUID().toString(), 6000);
    }

}
